﻿using AbstractTheFarm.Abstractions;
using AbstractTheFarm.SpecificProduct;
using System;
using System.Collections.Generic;
using System.Text;

namespace AbstractTheFarm.Plants
{
   public  class ConcreteFactory1: AbstractFactory
    {
        public Animal newProduct1()
        {
            Console.WriteLine("具体工厂 1 生成-->具体产品");
            return new ConcreteProduct11();
        }
        public AbstractTheFarm.Abstractions.Plant newProduct2()
        {
            Console.WriteLine("具体工厂 1 生成-->具体产品 21...");
            return new ConcreteProduct21();
        }
    }
}
